package com.xidian.zhiancloud.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 安全奖惩台账
 *
 * @author zhangyifan
 */
@Data
@TableName(value = "t_security_reward_punishment_ledger")
public class SecurityRewardPunishmentLedger {
    /**
     * id
     */
    @ExcelIgnore
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 多租户id
     */
    @ExcelIgnore
    private Long companyId;

    /**
     * 数据来源
     */
    @ExcelProperty("数据来源")
    private String dataSource;

    /**
     * 奖惩对象类型，0部门，1人员
     */
    @ExcelIgnore
    private Integer objectType;

    /**
     * 奖惩对象id
     */
    @ExcelIgnore
    private Long objectId;

    /**
     * 奖惩类型，0奖励，1惩罚
     */
    @ExcelIgnore
    private Integer rewardPunishmentType;

    /**
     * 奖惩金额
     */
    @ExcelProperty("奖惩金额")
    private BigDecimal money;

    /**
     * 奖惩原因
     */
    @ExcelProperty("奖惩原因")
    private String reason;

    /**
     * 奖惩时间
     */
    @ExcelProperty("奖惩时间")
    private Date time;

    /**
     * 批准部门id
     */
    @ExcelIgnore
    private Long approveOrganizationId;

    /**
     * 安全奖惩制度url，多个url用逗号分割
     */
    @ExcelIgnore
    private String securityRewardPunishmentSystemUrls;

    /**
     * 依据说明
     */
    @ExcelIgnore
    private String foundation;

    /**
     * 添加时间
     */
    @ExcelIgnore
    private Date createTime;
}